-- GENERATED SPELL FOR [Emergency Fire Bot] --


function spell0_34147(pUnit, Event) --@Deafening Siren,Self--
pUnit:FullCastSpellOnTarget(64616,pUnit)
pUnit:RegisterEvent('Sorts_34147', 605, 1)
end

function spell1_34147(pUnit, Event) --@Water Spray,Self--
pUnit:FullCastSpellOnTarget(64619,pUnit)
pUnit:RegisterEvent('Sorts_34147', 569, 1)
end

function Sorts_34147(pUnit, Event)
local choix_sorts_34147 = math.random(0, 1)
if choix_sorts_34147 == 0 then
pUnit:RegisterEvent('spell0_34147', 1, 1)
end
if choix_sorts_34147 == 1 then
pUnit:RegisterEvent('spell1_34147', 1, 1)
end
end

function mob34147_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34147', math.random(1500, 3000), 1)
end

function mob34147_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34147_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34147_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34147, 1, 'mob34147_Action')
RegisterUnitEvent(34147, 2, 'mob34147_Leave')
RegisterUnitEvent(34147, 3, 'mob34147_Kill')
RegisterUnitEvent(34147, 4, 'mob34147_Die')
